SGPrepare
TheSGPrepare
function instructs your component to get ready to begin a preview or record operation (or both)--the sequence grabber component specifies the operations.
pascal ComponentResult SGPrepare (SeqGrabComponent s, Boolean prepareForPreview, Boolean prepareForRecord);
s
- Identifies the sequence grabber component that has connected to your channel component.
prepareForPreview
- Instructs your component to prepare for a preview operation. The sequence grabber component sets this parameter to
true
to prepare for a preview operation. The sequence grabber component may set both theprepareForPreview
andprepareForRecord
parameters totrue
.prepareForRecord
- Instructs your component to prepare for a record operation. The sequence grabber component sets this parameter to
true
to prepare for a record operation. The sequence grabber component may set both theprepareForPreview
andprepareForRecord
parameters totrue
.DESCRIPTION
Your component should do whatever is necessary to get ready to start the operation. The goal is to reduce the delay between the time when the sequence grabber calls yourSGStartPreview
function (described on page 6-38) orSGStartRecord
function (described on page 6-39) and the time when the operation actually begins. This may involve allocating memory or readying special hardware.SPECIAL CONSIDERATIONS
If the sequence grabber callsSGPrepare
without subsequently starting a record or preview operation, it calls theSGRelease
function (described in the next section) later. This allows your component to release any system resources it allocated during theSGPrepare
function.RESULT CODES
File Manager errors
paramErr -50 Invalid parameter specified notEnoughDiskSpaceToGrab -9404 Insufficient disk space for record operation deviceCantMeetRequest -9408 Device cannot support grabber
Memory Manager errors
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help